package models

import org.joda.time.DateTime

case class User(userName: String,
                password: String,
                email: String,
                userStatus: String,
                joinTime: Option[DateTime],
                mobilePhoneNo: Option[String]=None,
                nickName: Option[String]=None,
                id: Option[Int] = None,
                updateTime: Option[DateTime]=None,
                isDeleted: Boolean = false,
                country: Option[String] = None,
                postCode: Option[String] = None,
                city: Option[String] = None) extends BaseModel

case class UserQuery(userName: Option[String] = None,
                     password: Option[String] = None,
                     email: Option[String] = None,
                     userStatus: Option[String] = None,
                     joinTime: Option[DateTime] = None,
                     mobilePhoneNo: Option[String] = None,
                     nickName: Option[String] = None,
                     userId: Option[Int] = None,
                     updateTime: Option[DateTime] = None,
                     country: Option[String] = None,
                     postCode: Option[String] = None,
                     city: Option[String] = None,
                     page: Option[Int] = None,
                     pageSize: Option[Int] = None
                    )

case class Login(userName: String, password: String, expireTime: Option[DateTime] = None)